package com.link.base.tencent.thirdclient.wechat.service;

import com.link.base.tencent.thirdclient.wechat.model.WxLogin;

import java.util.Map;

/**
 * 微信登录服务
 *
 * @author LiQun
 * @date 2018/2/28 11:13
 */
public interface WxLoginService {

    /**
     * 登录
     *
     * @author LiQun
     * @date 2018/2/28 11:13
     * @param wxLogin 微信登录对象
     */
    WxLogin getWeChatInfo(WxLogin wxLogin) throws Exception;

    /**
     * 获取appId
     *
     * @author LiQun
     * @date 2018/2/28 11:13
     * @param appId  appId
     */
    Map<String, String> getAppInfo(String appId) throws Exception;

    /**
     * 获取微信accessToken,refreshToken
     *
     * @author LiQun
     * @date 2018/2/28 11:13
     * @param weixinAppId     appId
     * @param weixinAppSecret appSecret
     * @param code            票据
     */
    Map<String, String> getTokenInfo(String weixinAppId, String weixinAppSecret, String code) throws Exception;
}
